import 'package:flutter/material.dart';
import 'package:flutter_framework_master/widget/Tabs.dart';


/**
 *Created by Jcy
 *on 2021/9/26
 */
class WelcomePage extends StatefulWidget {
  const WelcomePage({Key? key}) : super(key: key);

  @override
  _WelcomePageState createState() => _WelcomePageState();
}

class _WelcomePageState extends State<WelcomePage> {
  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    Future.delayed(Duration(milliseconds: 3000), () {
      Navigator.of(context).pushAndRemoveUntil(
        MaterialPageRoute(
          settings: RouteSettings(name: "/"),
          builder: (context) => Tabs(),
        ),
        (route) => false,
      );
    });
  }

  @override
  Widget build(BuildContext context) {
    return Image.asset(
      "images/start_image.jpg",
      fit: BoxFit.cover,
    );
  }
}
